home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
C-Communications
/
(c)c3.d64
/
vt52 40_80doc.d
< prev
next >
Wrap
Text File
|
2007-02-04
|
10KB
|
247 lines
====================================================================
**** ╔═╨╧╥╘┴╬╘ ****
* ┬┴├╦╙╠┴╙╚┼╙ IN THIS DOCUMENT WILL APPEAR AS ┬╥╔╘╔╙╚-╨╧╒╬─
SIGNS IF DISPLAYED ON ├OMMODORE EQUIPMENT.
* ╓┼╥╘╔├┴╠ ┬┴╥S WILL APPEAR AS ├OMMODORE GRAPHICS CHARACTERS
WHICH ARE SIMILAR TO THE ┴╙├╔╔ CHARACTER.
* ├┴╥┼╘S WILL APPEAR AS ╒╨-┴╥╥╧╫S.
=====================================================================
╘HIS PROGRAM MAKES THE ├OMMODORE 64 OPERATE LIKE A SEMI-
INTELLIGENT 40 OR 80 COLUMN ASCII TERMINAL. ╔T SUPPORTS INPUT
AND DISPLAY OF ALL THE ┴╙├╔╔ CHARACTERS, AND BEEPS WHEN THE ┬┼╠
CHARACTER IS RECEIVED. ┬EWARE THAT THE 80 COLUMN DISPLAY MODE
WILL PROBABLY REQUIRE A MONITOR UNLESS YOU ARE USING A ┬/╫
╘╓ SET WITH OUTSTANDING SHARPNESS AND VIDEO BANDWIDTH.
╘HE COMMUNICATION PROTOCOL IS FULL DUPLEX, 8 BITS, NO
PARITY, 1 STOP BIT, 300 OR 1200 BAUD, WITH ╪╧╬/╪╧╞╞ (─├1/
─├3) HOST FLOW CONTROL PROTOCOL -- THIS SHOULD SATISFY MOST
HOST COMPUTERS. ╘HE DISPLAY SCREEN IS 40 COLUMNS ╪ 25 LINES
OR 80 COLUMNS ╪ 25 LINES.
┬ECAUSE OF THE UNUSUAL LAYOUT OF THE ├64 KEYBOARD, THE
DESIRE TO SUPPORT ALL ASCII CHARACTERS, AND A PERSONAL
NEED TO FIND THE ┼╙├ AND ┬╙ KEYS IN THEIR USUAL POSITIONS,
THE FOLLOWING KEY SUBSTITUTIONS APPLY (NOTE- ^X IS SHORT-
HAND FOR ├╧╬╘╥╧╠-X):
╘╧ ╙┼╬─ ╘┘╨┼
------- ----
BACKSLASH ┬╥╔╘╔╙╚-╨╧╒╬─
^BACKSLASH ┬╥╔╘╔╙╚-╨╧╒╬─
^UNDERSCORE ^=
CARET ╒╨-┴╥╥╧╫
^CARET ╒╨-┴╥╥╧╫
^[ (┼╙├) ^[ OR ┬┴├╦-┴╥╥╧╫
UNDERSCORE F1
VERTICAL BAR F2
GRAVE ACCENT F3
TILDE F4
LEFT BRACE F5
RIGHT BRACE F6
─┼╠ (╥╒┬) F7
^╘ F8
^╚ (┬╙) ─┼╠, ^╚, OR ^╘
^╩ (╬╠) ╙╚╔╞╘/╥┼╘╒╥╬ OR ^╩
^╙ (─├3) ^╙ OR ╚╧═┼
^╤ (─├1) ^╤ OR ├╒╥╙╧╥ ─╧╫╬
^╔ (╘┴┬) ^╔ (IE. ╬O SEPARATE ╘┴┬ KEY)
╘HE ├╧╬╘╥╧╠-8 KEY IS USED TO SWITCH THE PROGRAM FROM 40 COLUMN
TO 80 COLUMN MODE. ╘HE ├╧╬╘╥╧╠-4 KEY IS USED TO SWITCH THE
PROGRAM BACK FROM 80 COLUMN TO 40 COLUMN MODE. ─EPRESSING ONE
OF THESE KEYS WHEN ALREADY IN THE CORRESPONDING MODE WILL SIMPLY
CLEAR THE SCREEN (AS IT DOES WHEN SWITCHING MODES).
╬OTE THAT PRESSING THE ├╧══╧─╧╥┼ KEY WILL PLACE THE TERMINAL
PROGRAM IN A SUSPENDED DISPLAY MODE (IE. THE CURSOR WILL FREEZE
AT IT'S CURRENT POSITION), AND ^╙ WILL BE SENT TO THE HOST
COMPUTER WHEN THE ╥╙-232 INPUT BUFFER FILLS UP. ╙IMILARLY,
PRESSING THE ├╧══╧─╧╥┼ KEY WILL REMOVE THE TERMINAL FROM THE
SUSPENDED DISPLAY MODE AND SEND A ^╤ TO THE HOST COMPUTER ONLY
IF A ^╙ HAD PREVIOUSLY BEEN SENT AND THE BUFFER HAS BECOME NEARLY
EMPTY. ╘HIS ENABLES THE ├╧══╧─╧╥┼ KEY TO BE USED LIKE THE ╙├╥╧╠╠/
╬╧-╙├╥╧╠╠ KEY ON ─┼├ TERMINALS.
╙USPENDED DISPLAY MODE IS INDICATED TO THE USER BY THE CURSOR
BLINKING MUCH FASTER THAN NORMAL, AN INDICATION THAT THE ├╧══╧─╧╥┼
KEY MUST BE PRESSED TO RESUME DISPLAYING THE RECEIVED TEXT.
╘HE PROGRAM MAY ALSO SEND ^╙ AND ^╤ TO THE HOST COMPUTER ON ITS
OWN FROM TIME TO TIME IF IT DETECTS AN IMPENDING ╥╙-232 BUFFER
OVERFLOW CONDITION - THIS NORMALLY WILL ONLY OCCUR WHILE PRINTING
A NUMBER OF SHORT OR BLANK LINES WHILE SCROLLING THE SCREEN UP
(OR DOWN), SINCE 4 TO 15 CHARACTERS ARE RECEIVED INTO THE ╥╙-232
BUFFER DURING THE TIME IT TAKES TO SCROLL THE WHOLE SCREEN.
╔N ANY CASE, THIS AUTOMATIC FLOW CONTROL IS FULLY SYNCHRONIZED
WITH THE FLOW CONTROL NECESSITATED BY THE USE OF THE ├╧══╧─╧╥┼
KEY TO SUSPEND AND RESUME THE DISPLAY OF RECEIVED TEXT.
─EPRESSING THE ^╙ AND ^╤ KEYS (OR THEIR SUBSTITUTES INDICATED ABOVE)
UNCONDITIONALLY SENDS THOSE ┴╙├╔╔ CHARACTERS TO THE REMOTE HOST
COMPUTER WITHOUT ANY LOCAL EFFECT.
╘HIS TERMINAL PROGRAM DOES ╬╧╘ SUPPORT FLOW CONTROL IN THE
OPPOSITE DIRECTION - RECEIVING ^╙ FROM THE HOST COMPUTER WILL NOT
LOCK THE KEYBOARD OR HAVE ANY OTHER EFFECT, NOR WILL ^╤.
┴LSO NOTE THAT PRESSING THE ╥╒╬/╙╘╧╨ KEY WITH ╙╚╔╞╘ DEPRES-
SED WILL CLEANLY TERMINATE THE TERMINAL EMULATOR PROGRAM,
AND GENERATE THE ┬╥╦ INTERRUPT TO SEND THE ├64 BACK
TO WHOEVER IS SERVICING THOSE INTERRUPTS (┬┴╙╔├,
╙╒╨┼╥═╧╬64,ETC).
┴LL 94 PRINTABLE ASCII CHARACTERS AND THE SPACE WILL
BE DISPLAYED ON THE SCREEN AS RECEIVED OVER THE ╥╙-232
CHANNEL. ═OST OF THE REMAINING (CONTROL) CHARACTERS ARE
NOT DISPLAYED- HOWEVER THE FOLLOWING CONTROL CHARACTERS
AND ESCAPE SEQUENCES HAVE SPECIAL EFFECTS:
├╚┴╥┴├╘┼╥ ┼╞╞┼├╘
--------- ------
^╟ (┬┼╠) BEEPS THE ╘╓
^╚ (┬╙) CURSOR BACKSPACES
^╔ (╘┴┬) CURSOR MOVES RIGHT TO NEXT TAB STOP
^╩ (╬╠) CURSOR MOVES DOWN ONE LINE WITH SCROLLING
^═ (├╥) CURSOR MOVES TO START OF LINE
^[┴ CURSOR MOVES UP ONE LINE
^[┬ CURSOR MOVES DOWN
^[├ CURSOR MOVES RIGHT ONE CHAR.
^[─ CURSOR MOVES LEFT ONE CHAR.
^[╚ CURSOR HOMES
^[╔ CURSOR MOVES UP ONE LINE WITH SCROLLING
^[╩ CLEARS FROM CURSOR TO END OF SCREEN
^[╦ CLEARS FROM CURSOR TO END OF LINE
^[┘LC CURSOR MOVES TO LINE L-$20, COL C-$20
^[┌ SENDS ─┼├ ╓╘-52 TERMINAL ID STRING
^[N TURNS OFF REVERSE VIDEO
^[O TURNS ON REVERSE VIDEO
^[^\ INITIATES DOWNLINE LOAD
╘AB STOPS ARE PRE-DEFINED AND FIXED AT EVERY 8 COLUMNS
BEGINNING WITH COLUMN 0 (IE. 0, 8, 16, 24, ...).
╘HE REST SHOULD ALL BE PRETTY MUCH SELF EXPLANATORY EXCEPT
FOR "DOWNLINE LOAD". ╧NCE THE ^[^\ SEQUENCE HAS BEEN RE-
CEIVED, THE PROGRAM EXPECTS LINES TO COME IN OVER THE ╥╙-
232 CHANNEL OF THE FORM:
;LLHHDDDDDDDDDD...
WHERE "LLHH" IS THE ADDRESS FOR THE FIRST.BYT OF DATA
ON THE LINE (IN 6502 LOW/HIGH FORMAT), AND "DDDDDD.."
ARE THE DATA.BYTS THEMSELVES - NOTE THAT THE ADDRESS
MUST BE 4 HEXADECIMAL DIGITS AND EACH DATA.BYT MUST
BE 2 HEXADECIMAL DIGITS. ╘HE LOAD IS TERMINATED NORMALLY
BY RECEPTION OF THE CONTROL CHARACTER ^^, OR ABNORMALLY
IF THE USER HITS A KEY ON THE ├64 KEYBOARD DURING THE
LOAD. ╔N THE 40 COLUMN MODE, ╔T IS POSSIBLE TO LOAD ANYWHERE
IN THE ADDRESS RANGES $0800 THROUGH $9FFF AND $C000 THROUGH
$CFFF SINCE THE TERMINAL PROGRAM ITSELF HIDES UNDER THE ┬┴╙╔├
╥╧═ (FROM $A000 THROUGH $BFFF). 80 COLUMN MODE SHOULD NOT
BE USED TO DOWNLOAD INTO THE ADDRESS RANGE $5C00 THROUGH
$7FFF BECAUSE THAT IS WHERE THE HIGH RESOLUTION VIDEO MATRIX
AND SCREEN IMAGE RESIDE IN THAT MODE.
╓┴╪ ╒╬╔╪ USERS (┬ERKELEY 4.1BSD) WILL FIND THAT THE FOLLOWING
"TERMCAP" ENTRIES EFFECTIVELY DESCRIBE THIS TERMINAL PROGRAM
FOR USE WITH THE TERMINAL DEPENDENT ╒╬╔╪ PROGRAMS (EG. VI,
EMACS, MORE, ROGUE, ETC.):
QC▌C64▌├64▌├OMMODORE 64:CO#40:LI#25:\
:AM:PT:BW:\
:UP=\┼┴:HO=\┼╚:DO=\┼┬:\
:ND=\┼├:SO=\┼O:SE=\┼N:CE=\┼╦:\
:CD=\┼╩:SR=\┼╔:BC=\┼─:\
:CL=\┼╚\┼╩:CM=\┼┘%+ %+ :\
:KU=^┬:KD=^╨:KR=^╘:KL=^┼:
QD▌C64W▌├64╫▌├OMMODORE 64 80 ├OL ╪ 25 ╠IN:CO#80:LI#25:\
:AM:PT:BW:\
:UP=\┼┴:HO=\┼╚:DO=\┼┬:\
:ND=\┼├:SO=\┼O:SE=\┼N:CE=\┼╦:\
:CD=\┼╩:SR=\┼╔:BC=\┼─:\
:CL=\┼╚\┼╩:CM=\┼┘%+ %+ :\
:KU=^┬:KD=^╨:KR=^╘:KL=^┼:
╓┴╪ ╓═╙ USERS CAN PROBABLY GET AWAY WITH THE FOLLOWING (ALTHOUGH
SOME ╓═╙ PROGRAMS [EG. EDT] REQUIRE AN AUXILLIARY KEYPAD, AND DO
NOT WORK ESPECIALLY WELL IN 40 COLUMN MODE):
SET TERM /DEV=VT52
SET TERM /PAG=25
SET TERM /WID=80 [OR 40, AS THE CASE MAY BE]
╘╧╨╙-20 USERS CAN RUN "EMACS" AND THE LIKE AFTER THE FOLLOWING:
TERM VT52
TERM LENGTH 25
TERM WIDTH 80 [OR 40, AS THE CASE MAY BE]
TERM PAUSE COM
┴ LOW PITCHED BEEP (MUCH LOWER THAN THAT GENERATED BY
RECEIPT OF THE ┬┼╠ CHARACTER) INDICATES AN ERROR ON THE
╥╙-232 CHANNEL (A HIT, LOST DATA, ETC).
╧F COURSE, THIS PROGRAM ASSUMES YOU HAVE BEEN ABLE
TO CONNECT A MODEM (OR NULL MODEM) TO THE ├64 USER
PORT, WHICH MAY OR MAY NOT BE TRIVIAL!
╘O RUN THE TERMINAL PROGRAM, JUST LOAD IT LIKE ANY ┬┴╙╔├
PROGRAM AND ╥╒╬ IT. ┘OU WILL BE PROMPTED FOR THE BAUD
RATE. ┼NTER EITHER 3 OR 300 FOR 300 BAUD, 12 OR 1200
FOR 1200 BAUD, OR JUST A CARRIAGE RETURN FOR THE DEFAULT
(300 BAUD). ╔F YOU FIND COMMUNICATIONS SHAKY OR IMPOS-
SIBLE AT 1200 BAUD, YOU MAY HAVE TO CHANGE THE POKE IN
BASIC WHICH POKES 0 TO POKE 8 INSTEAD. ╔F THIS FAILS TO
HELP, TRY TUNING THE OPTIONAL BAUD RATE CONSTANTS IN 0A4F
AND 0A50 FOR YOUR SYSTEM CLOCK AS DESCRIBED IN REF. GUIDE
PAGE 350 (USE POKE OF 0 INTO 0A4D IN THIS CASE).
╧NCE IT HAS BEEN RUN, THE TERMINAL PROGRAM MOVES ITSELF
UNDER THE ┬┴╙╔├ ╥╧═ AND RUNS THERE (ALTHOUGH THE ORIGINAL
COPY REMAINS WHERE IT WAS LOADED AND CAN BE RE-RUN AS LONG
AS IT REMAINS INTACT). ╘HE MEMORY MAP AT RUN TIME IS:
$A080-$AFFF ╘HE PROGRAM AREA
$B000-$B1FF ╒NUSED
$B200-$B2FF ╥╙-232 OUTPUT BUFFER
$B300-$B3FF ╥╙-232 INPUT BUFFER
$B400-$B7FF ╓IDEO MATRIX (THE 40 COLUMN SCREEN)
$B800-$BFFF ├HARACTER SET FOR 40 COLUMN MODE
$02A7-$02B6 ╘ERMINATION/╥ESTART CODE
╔N ADDITION, THE FOLLOWING MEMORY AREAS ARE USED ONLY WHILE THE
PROGRAM IS IN THE 80 COLUMN MODE:
$5C00-$5FFF ╓IDEO MATRIX (THE 80 COLUMN COLOR MEMORY)
$6000-$7FFF ╚IRES SCREEN (THE 80 COLUMN SCREEN)
╧NCE THE TERMINAL PROGRAM HAS BEEN TERMINATED (WITH ╙╚╔╞╘/
╥╒╬/╙╘╧╨), IT MAY BE RE-STARTED BY RE-RUNNING THE ORIGINAL
┬┴╙╔├ PROGRAM. ╚OWEVER, IF THE ┬┴╙╔├ PROGRAM AREA HAS BEEN
OVER-WRITTEN DURING DOWNLOADING, THE TERMINAL PROGRAM CAN
STILL BE RESTARTED (AT THE SAME BAUD RATE AS BEFORE) WITH
THE ┬┴╙╔├ DIRECT COMMAND "╙┘╙(686)"; THIS COMMAND WILL
RESTART THE TERMINAL PROGRAM AT ANY TIME, EVEN AFTER RUNNING
OTHER PROGRAMS, UNLESS SOME PROGRAM IS RUN WHICH POKES
INTO THE AREAS SHOWN IN THE FIRST MAP ABOVE.
╧NE LAST WARNING: THIS PROGRAM IS NOT RELOCATABLE - DO
NOT CHANGE THE *LENGTH* OF THE ┬┴╙╔├ PROGRAM OR NOTHING
WILL WORK!
╟OOD ╠UCK AND ┼NJOY....
╞RANK ╨RINDLE
(3) ╬╒?ER-WRITTEN DURING DOWNLOADING, THE TERMINAL PROGRAM CAN
STILL BE RESTARTED (AT THE SAME BAUD RATE AS BEFORE) WITH
THE ┬┴╙╔├ DIRECT COMMAND "╙┘╙(686)"; THIS COMMAND WILL
RESTART THE TERMINAL PROGRAM AT ANY TIME, EVEN AFTER RUNNING
OTHER E